﻿/*********************************************************************
 * @file       week_minblock.cpp
 * @brief      每周安排小组件类
 * @details    基于ui文件运行
 * @author     南樟(a2169272059@163.com)
 * @date       2025-2-10
 * @version    1.0.0
 * @copyright  a2169272059@163.com
 *********************************************************************/
#include "week_minblock.h"
#include "ui_week_minblock.h"
/**
 * @brief week_minBlock::week_minBlock 每周安排小组件类的构造函数
 * @param lab_note 该安排的备注
 * @param lab_time0 该安排的起始时间
 * @param lab_time1 该安排的终止时间
 * @param height 该组件的高度(与时间对应每分钟占两个像素点)
 * @param parent 组件父节点
 */
week_minBlock::week_minBlock(const QString lab_note
                             , const QString lab_time0
                             , const QString lab_time1
                             , const int height
                             , QWidget *parent)
            : QWidget(parent)
            , ui(new Ui::week_minBlock)
{
    ui->setupUi(this);
    ui->lab_note->setText(lab_note);
    ui->lab_time0->setText(lab_time0);
    ui->lab_time1->setText(lab_time1);
    // 设定固定高度
    this->setFixedHeight(height);
}
/**
 * @brief week_minBlock::~week_minBlock 每周安排小组件类的析构函数
 */
week_minBlock::~week_minBlock()
{
    delete ui;
}
